{template:header}
<body>
<div class="blog-header text-center">

	<h1><a href="{$host}">{$name}</a></h1>
	<p>{$subname}</p>
<hr/>
</div>

<section>
<div class="container">
<div class="row">
<div class="col-md-8">
{foreach $articles as $article}
{if $article.IsTop}
{template:post-istop}
{else}
{template:post-multi}
{/if}
{/foreach}
  <div class="pagebar">{template:pagebar}</div>
</div>
<div class="col-md-4 blog-sidebar">
<div class="panel panel-default">
        <div class="panel-heading"><h3 class="panel-title">网站搜索</h3></div>
        <div class="panel-body">
        <ul class="nav nav-pills nav-stacked">
  <form name="search" method="post" action="{$host}zb_system/cmd.php?act=search" class="form-inline"><input type="text" name="q" class="form-control" width:"100%"/> <input type="submit" value="我要搜索" class="btn btn-primary" /></form>
</ul></div>
      </div>

	<div class="panel panel-default">
        <div class="panel-heading"><h3 class="panel-title">网站导航</h3></div>
        <div class="panel-body">
        <ul class="nav nav-pills nav-stacked">
  {module:navbar}
</ul></div>
      </div>
<div class="panel panel-default">
        <div class="panel-heading"><h3 class="panel-title">最新文章</h3></div>
        <div class="panel-body">
       {$array=TcgetList(5,null,null,null,null,null,null,'new');}
<ul class="nav nav-pills nav-stacked">
{foreach $array as $related}
<li><span class="sidebar_title"><a href="{$related.Url}" title="{$related.Title}">{$related.Title}</a></span></li>
{/foreach}
</ul></div>
      </div>

     <div class="panel panel-default">
        <div class="panel-heading"><h3 class="panel-title">热门文章</h3></div>
        <div class="panel-body">
       {$array=TcgetList(5,null,null,null,null,null,null,'hot');}
<ul class="nav nav-pills nav-stacked">
{foreach $array as $related}
<li><span class="sidebar_title"><a href="{$related.Url}" title="{$related.Title}">{$related.Title}</a></span></li>
{/foreach}
</ul></div>
      </div>

      <div class="panel panel-default">
        <div class="panel-heading"><h3 class="panel-title">友情链接</h3></div>
        <div class="panel-body">
        <ul class="nav nav-pills nav-stacked">
        {module:link}
        </ul></div>
      </div>
</div>

</div></div>
</section>

{template:footer}